package java0430;

public class PersonTest {
    public static void main(String[] args) {
        //创建人类对象
        Person person1 = new Person("张三",20,"男");
        //调用对象的方法
        person1.eat();
        person1.speak();

        Person person2 = new Person("李四",22,"女");
        person2.eat();
        person2.speak();
    }
}
